<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2019/1/24
 * Time: 10:50
 */


require_once "../../php/config/config.php";
require_once "../model/adminDb.php";
$AdminDb=new AdminDb();

$data = $AdminDb->query_user();
$sum=count($data);
if ($data) {

    $dat = array(
        "msg" => "查询成功",
        'code' => 0,
        'count' => $sum,
        "data"=>$data,
    );
    echo json_encode($dat);
} else {
    $dat = array(
        "message" => "查询失败",
        "code" => "404",
    );
    echo json_encode($dat);
}